'use strict';

/**
 * @ngdoc service
 * @name appApp.zhongliuFactory
 * @description
 * # zhongliuFactory
 * Factory in the appApp.
 */
angular.module('appApp')
  .factory('yzFactory', function ($resource, cfg) {
    // Service logic
    // ...

    var meaningOfLife = 42;

    // Public API here
    return {
      index: $resource(cfg.baseUrl + 'api/index/:action', {},{
        'doctors': {method:'GET', params:{action:'doctors'},isArray:false},
        'doctorDetail': {method:'GET', params:{action:'doctorDetail'},isArray:false},
        'office': {method:'GET', params:{action:'office'},isArray:false},
        'news': {method:'GET', params:{action:'news'},isArray:false},
        'newsDetail': {method:'GET', params:{action:'newsDetail'},isArray:false},
        'ndz': {method:'GET', params:{action:'ndz'},isArray:false},
        'ljsyz': {method:'GET', params:{action:'ljsyz'},isArray:false},
        'syzgc': {method:'GET', params:{action:'syzgc'},isArray:false},
        'getQuestion': {method:'GET', params:{action:'getQuestion'},isArray:false},
        'getryzn': {method:'GET', params:{action:'getryzn'},isArray:false},
        'getynzd': {method:'GET', params:{action:'getynzd'},isArray:false},
        'getcyzn': {method:'GET', params:{action:'getcyzn'},isArray:false},
        'getywzd': {method:'GET', params:{action:'getywzd'},isArray:false},
        'ryznDetail': {method:'GET', params:{action:'ryznDetail'},isArray:false},
        'ynzdDetail': {method:'GET', params:{action:'ynzdDetail'},isArray:false},
        'cyznDetail': {method:'GET', params:{action:'cyznDetail'},isArray:false},
        'ywzdDetail': {method:'GET', params:{action:'ywzdDetail'},isArray:false}
      }),
      wechat: $resource(cfg.baseUrl + 'api/wechat/:action', {},{
        'downloadimage': {method:'GET', params:{action:'downloadimage'},isArray:false},
        'downloadimages': {method:'GET', params:{action:'downloadimages'},isArray:false}
      }),
    }
  });
